Computer-assisted prescription